<?php
	require_once("includes/overhead.php");
		$departments=null;
		$getDeptListQuery=mysql_query("select Code,ID from Department");
		header ("Content-Type:text/xml"); 
		print "<Departments>\n";
		while ($row=mysql_fetch_assoc($getDeptListQuery)) { 
			print "<Department>\n<ID>".$row['ID']."</ID>\n<Code>".$row['Code']."</Code>\n</Department>\n";
		}
		print "</Departments>";
?>